package org.ctstudio.oa.duty.bean;

import org.ctstudio.common.bean.IdentifiedObject;
import org.springframework.util.StringUtils;

import java.time.LocalDate;
import java.time.LocalTime;

public class SignRecord extends IdentifiedObject implements UidBean {

  private static final long serialVersionUID = -2210045754654714659L;

  private LocalDate signDate;
  private LocalTime signTime;
  private String uid;
  private String userName;
  private String ipAddress;
  private String machine;
  private String userAgent;
  private String clientId;

  public LocalDate getSignDate() {
    return signDate;
  }

  public void setSignDate(LocalDate signDate) {
    this.signDate = signDate;
  }

  public LocalTime getSignTime() {
    return signTime;
  }

  public void setSignTime(LocalTime signTime) {
    this.signTime = signTime;
  }

  public String getUid() {
    return uid;
  }

  public void setUid(String uid) {
    this.uid = uid;
  }

  public String trimUid() {
    if (!StringUtils.isEmpty(this.uid)) {
      this.uid = uid.trim();
    }
    return this.uid;
  }

  public String getIpAddress() {
    return ipAddress;
  }

  public void setIpAddress(String ipAddress) {
    this.ipAddress = ipAddress;
  }

  public String getMachine() {
    return machine;
  }

  public void setMachine(String machine) {
    this.machine = machine;
  }

  public String getUserAgent() {
    return userAgent;
  }

  public void setUserAgent(String userAgent) {
    this.userAgent = userAgent;
  }

  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }

  public String getClientId() {
    return clientId;
  }

  public void setClientId(String clientId) {
    this.clientId = clientId;
  }

}
